package com.tangyee.home_knowledge.util;

/**
 * @author: yu huawen
 * @date: 2019/1/24 19:22
 */
public class ConstantUtil {

    // 请求成功
    public static final int SUCCESS = 1;
    // 请求失败
    public static final int FALL = 2;
    // 请求的数据已到底 或者 请求到空数据
    public static final int FINISH = 3;
    // 请求详情页时的变量名
    public static final String detailParamName = "kid";
    // 请求知识目录的变量名
    public static final String contentParamName = "parentID";
    // 请求搜索知识的变量名
    public static final String searchParamName = "key";
    // 知识的 URL （首页刷新加载）
    public static final String knowledgeURL = "https://www.tangyee.com/Mobile/Knowledge/GetKnowledgeInfos";
    // 知识首页的图片 URL 前缀
    public static final String imagePreURL = "https://www.tangyee.com/Content/upload/images/RecipeImages/";
    // 知识详情页的 URL 前缀
    public static final String knowledgeDetailURL = "https://www.tangyee.com/Mobile/Knowledge/GetKnowledgeInfo";
    // 知识目录的 URL 前缀
    public static final String knowledgeContentURL = "https://www.tangyee.com//Mobile/Knowledge/GetKlgTopClses";
    // 搜索知识的 URL 前缀
    public static final String searchKnowledgeURL = "https://www.tangyee.com//Mobile/Knowledge/SearchKnowledge";

    // 知识分类展开请求参数,四个
    public static final String sortExpandParamNamePageSize = "pagesize";
    public static final String sortExpandParamNamePage = "page";
    public static final String sortExpandParamNameSupCls = "supCls";
    public static final String sortExpandParamNameSubCls = "subCls";
    // 知识分类展开 URL 前缀
    public static final String sortExpandURL = "https://www.tangyee.com/Mobile/Knowledge/GetKnowledgesByCls";
}
